fmt.fmt.wid (field)
22 uses
fmt (current package)
format.go#L46: wid int // width
format.go#L56: f.wid = 0
format.go#L94: if !f.widPresent || f.wid == 0 {
format.go#L98: width := f.wid - utf8.RuneCount(b)
format.go#L112: if !f.widPresent || f.wid == 0 {
format.go#L116: width := f.wid - utf8.RuneCountInString(s)
format.go#L208: width := 3 + f.wid + f.prec // wid and prec are always positive.
format.go#L225: f.writePadding(f.wid)
format.go#L230: prec = f.wid
format.go#L398: f.writePadding(f.wid)
format.go#L403: if f.widPresent && f.wid > width && !f.minus {
format.go#L404: f.writePadding(f.wid - width)
format.go#L432: if f.widPresent && f.wid > width && f.minus {
format.go#L433: f.writePadding(f.wid - width)
format.go#L587: if f.zero && !f.minus && f.widPresent && f.wid > len(num) {
format.go#L589: f.writePadding(f.wid - len(num))
print.go#L184: func (p *pp) Width() (wid int, ok bool) { return p.fmt.wid, p.fmt.widPresent }
print.go#L1090: p.fmt.wid, p.fmt.widPresent, argNum = intFromArg(a, argNum)
print.go#L1098: if p.fmt.wid < 0 {
print.go#L1099: p.fmt.wid = -p.fmt.wid
print.go#L1105: p.fmt.wid, p.fmt.widPresent, i = parsenum(format, i, end)
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |